package com.tyfspring.aop;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/4/16 16:13
 */

public class TargetSource {

    private final Object target;

    public TargetSource(Object target) {
        this.target = target;
    }

    public Object getTarget() {
        return target;
    }

    /**
     * 要代理的接口类
     * @return
     */
    public Class<?>[] getTargetClass(){
        return this.target.getClass().getInterfaces();
    }
}
